<?php
// +----------------------------------------------------------------------
// | Yzncms [ 御宅男工作室 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2018 http://yzncms.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 御宅男 <530765310@qq.com>
// +----------------------------------------------------------------------

// +----------------------------------------------------------------------
// | 登录验证
// +----------------------------------------------------------------------
namespace app\api\validate;

use think\Validate;

class Login extends Validate
{

    //定义验证规则
    protected $rule = [
        'phone' => 'require|mobile',
    ];

    protected $message = [
        'phone.require' => '手机号不能为空',
        'phone.mobile' => '请输入正确的手机号',
    ];


    //定义验证场景
    protected $scene = [
        'code' => ['phone'],

    ];

}
